
class A {

    constructor(name,age) {
        this.dateNext = age
        this.name  = name
        this.show = function showDate(dateNext) {

            return dateNext
        }
    }
    get one() { return 1; }
}

class B extends A {
  constructor() {
    super()
    this.school = 'XUST'
    // return Object.create(new.target.prototype);
  }
  get two() { return 2; }
};

let b = new B();
// console.log(b.one, b.two); // 1 2
// console.log(b.name);
// console.log(b.showDate);
console.log(b.school);
console.log(b);
